home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 26 code / Truffles-Display Mgr.sit / Truffles - Display Mgr. / Sprocket / Interfaces / ThreadContext.h < prev    next >
MacBinary  |  1995-05-31  |  1.8 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue May 30 21:09:41 1995, modified Tue May 30 21:09:41 1995, creator 'MMCC', type ASCII, 1131 bytes "ThreadContext.h" , at 0x4eb 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 54 68 72 65 61 64 | 43 6f 6e 74 65 78 74 2e |..Thread|Context.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 04 6b 00 | 00 01 9a ab f1 72 55 ab |......k.|.....rU.|
|00000060| f1 72 55 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.rU.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 07 25 00 00 |........|.....%..|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 54 68 72 65 61 |/*..File|:..Threa|
|00000090| 64 43 6f 6e 74 65 78 74 | 2e 68 0d 0d 09 43 6f 6e |dContext|.h...Con|
|000000a0| 74 61 69 6e 73 3a 09 41 | 6e 20 61 62 73 74 72 61 |tains:.A|n abstra|
|000000b0| 63 74 20 63 6c 61 73 73 | 20 66 6f 72 20 74 68 72 |ct class| for thr|
|000000c0| 65 61 64 73 0d 09 09 09 | 09 0d 09 57 72 69 74 74 |eads....|...Writt|
|000000d0| 65 6e 20 62 79 3a 20 53 | 74 65 76 65 20 53 69 73 |en by: S|teve Sis|
|000000e0| 61 6b 0d 09 0d 09 43 6f | 70 79 72 69 67 68 74 3a |ak....Co|pyright:|
|000000f0| 09 a9 20 31 39 39 35 20 | 62 79 20 53 74 65 76 65 |.. 1995 |by Steve|
|00000100| 20 53 69 73 61 6b 2c 20 | 61 6c 6c 20 72 69 67 68 | Sisak, |all righ|
|00000110| 74 73 20 72 65 73 65 72 | 76 65 64 2e 0d 0d 09 43 |ts reser|ved....C|
|00000120| 68 61 6e 67 65 20 48 69 | 73 74 6f 72 79 20 28 6d |hange Hi|story (m|
|00000130| 6f 73 74 20 72 65 63 65 | 6e 74 20 66 69 72 73 74 |ost rece|nt first|
|00000140| 29 3a 0d 09 20 0d 20 2a | 2f 0d 23 69 66 6e 64 65 |):.. . *|/.#ifnde|
|00000150| 66 09 5f 54 48 52 45 41 | 44 43 4f 4e 54 45 58 54 |f._THREA|DCONTEXT|
|00000160| 5f 0d 23 64 65 66 69 6e | 65 09 5f 54 48 52 45 41 |_.#defin|e._THREA|
|00000170| 44 43 4f 4e 54 45 58 54 | 5f 0d 0d 23 69 66 6e 64 |DCONTEXT|_..#ifnd|
|00000180| 65 66 09 5f 5f 54 48 52 | 45 41 44 53 5f 5f 0d 23 |ef.__THR|EADS__.#|
|00000190| 69 6e 63 6c 75 64 65 20 | 3c 54 68 72 65 61 64 73 |include |<Threads|
|000001a0| 2e 68 3e 0d 23 65 6e 64 | 69 66 0d 0d 23 69 66 64 |.h>.#end|if..#ifd|
|000001b0| 65 66 09 5f 5f 4d 57 45 | 52 4b 53 5f 5f 0d 23 69 |ef.__MWE|RKS__.#i|
|000001c0| 6e 63 6c 75 64 65 20 3c | 4d 57 45 78 63 65 70 74 |nclude <|MWExcept|
|000001d0| 69 6f 6e 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 63 |ion.h>.#|endif..c|
|000001e0| 6c 61 73 73 09 54 54 68 | 72 65 61 64 43 6f 6e 74 |lass.TTh|readCont|
|000001f0| 65 78 74 0d 7b 0d 70 72 | 6f 74 65 63 74 65 64 3a |ext.{.pr|otected:|
|00000200| 0d 09 54 68 72 65 61 64 | 49 44 09 09 66 54 68 72 |..Thread|ID..fThr|
|00000210| 65 61 64 49 44 3b 0d 09 | 76 6f 69 64 2a 09 09 09 |eadID;..|void*...|
|00000220| 66 54 68 72 65 61 64 52 | 65 73 75 6c 74 3b 0d 0d |fThreadR|esult;..|
|00000230| 23 69 66 64 65 66 09 5f | 5f 4d 57 45 52 4b 53 5f |#ifdef._|_MWERKS_|
|00000240| 5f 0d 09 45 78 63 65 70 | 74 69 6f 6e 53 74 61 74 |_..Excep|tionStat|
|00000250| 65 09 66 53 61 76 65 64 | 53 74 61 74 65 3b 0d 09 |e.fSaved|State;..|
|00000260| 45 78 63 65 70 74 69 6f | 6e 53 74 61 74 65 09 66 |Exceptio|nState.f|
|00000270| 45 78 63 65 70 74 69 6f | 6e 53 74 61 74 65 3b 0d |Exceptio|nState;.|
|00000280| 09 63 68 61 72 09 09 09 | 66 43 61 74 63 68 42 75 |.char...|fCatchBu|
|00000290| 66 66 65 72 5b 43 41 54 | 43 48 5f 42 55 46 53 49 |ffer[CAT|CH_BUFSI|
|000002a0| 5a 45 5d 3b 0d 23 65 6e | 64 69 66 0d 0d 70 75 62 |ZE];.#en|dif..pub|
|000002b0| 6c 69 63 3a 0d 09 09 09 | 09 09 54 54 68 72 65 61 |lic:....|..TThrea|
|000002c0| 64 43 6f 6e 74 65 78 74 | 28 76 6f 69 64 29 3b 0d |dContext|(void);.|
|000002d0| 09 76 69 72 74 75 61 6c | 09 09 09 7e 54 54 68 72 |.virtual|...~TThr|
|000002e0| 65 61 64 43 6f 6e 74 65 | 78 74 28 29 3b 0d 0d 09 |eadConte|xt();...|
|000002f0| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 43 72 65 |virtual |void.Cre|
|00000300| 61 74 65 54 68 72 65 61 | 64 28 54 68 72 65 61 64 |ateThrea|d(Thread|
|00000310| 53 74 79 6c 65 20 74 68 | 72 65 61 64 53 74 79 6c |Style th|readStyl|
|00000320| 65 2c 20 54 68 72 65 61 | 64 45 6e 74 72 79 50 72 |e, Threa|dEntryPr|
|00000330| 6f 63 50 74 72 20 74 68 | 72 65 61 64 45 6e 74 72 |ocPtr th|readEntr|
|00000340| 79 2c 20 53 69 7a 65 20 | 73 74 61 63 6b 53 69 7a |y, Size |stackSiz|
|00000350| 65 2c 20 54 68 72 65 61 | 64 4f 70 74 69 6f 6e 73 |e, Threa|dOptions|
|00000360| 20 6f 70 74 69 6f 6e 73 | 29 3b 0d 0d 09 76 69 72 | options|);...vir|
|00000370| 74 75 61 6c 20 76 6f 69 | 64 09 53 77 69 74 63 68 |tual voi|d.Switch|
|00000380| 49 6e 28 76 6f 69 64 29 | 3b 0d 09 76 69 72 74 75 |In(void)|;..virtu|
|00000390| 61 6c 20 76 6f 69 64 09 | 53 77 69 74 63 68 4f 75 |al void.|SwitchOu|
|000003a0| 74 28 76 6f 69 64 29 3b | 0d 09 76 69 72 74 75 61 |t(void);|..virtua|
|000003b0| 6c 20 76 6f 69 64 09 54 | 65 72 6d 69 6e 61 74 65 |l void.T|erminate|
|000003c0| 28 76 6f 69 64 29 3b 0d | 09 0d 70 72 6f 74 65 63 |(void);.|..protec|
|000003d0| 74 65 64 3a 0d 09 73 74 | 61 74 69 63 20 70 61 73 |ted:..st|atic pas|
|000003e0| 63 61 6c 20 76 6f 69 64 | 20 53 77 69 74 63 68 49 |cal void| SwitchI|
|000003f0| 6e 50 72 6f 63 28 54 68 | 72 65 61 64 49 44 20 74 |nProc(Th|readID t|
|00000400| 68 72 65 61 64 42 65 69 | 6e 67 53 77 69 74 63 68 |hreadBei|ngSwitch|
|00000410| 65 64 2c 20 76 6f 69 64 | 20 2a 73 77 69 74 63 68 |ed, void| *switch|
|00000420| 50 72 6f 63 50 61 72 61 | 6d 29 3b 0d 09 73 74 61 |ProcPara|m);..sta|
|00000430| 74 69 63 20 70 61 73 63 | 61 6c 20 76 6f 69 64 20 |tic pasc|al void |
|00000440| 53 77 69 74 63 68 4f 75 | 74 50 72 6f 63 28 54 68 |SwitchOu|tProc(Th|
|00000450| 72 65 61 64 49 44 20 74 | 68 72 65 61 64 42 65 69 |readID t|hreadBei|
|00000460| 6e 67 53 77 69 74 63 68 | 65 64 2c 20 76 6f 69 64 |ngSwitch|ed, void|
|00000470| 20 2a 73 77 69 74 63 68 | 50 72 6f 63 50 61 72 61 | *switch|ProcPara|
|00000480| 6d 29 3b 0d 09 73 74 61 | 74 69 63 20 70 61 73 63 |m);..sta|tic pasc|
|00000490| 61 6c 20 76 6f 69 64 20 | 54 65 72 6d 69 6e 61 74 |al void |Terminat|
|000004a0| 69 6f 6e 50 72 6f 63 28 | 54 68 72 65 61 64 49 44 |ionProc(|ThreadID|
|000004b0| 20 74 68 72 65 61 64 54 | 65 72 6d 69 6e 61 74 65 | threadT|erminate|
|000004c0| 64 2c 20 76 6f 69 64 20 | 2a 74 65 72 6d 69 6e 61 |d, void |*termina|
|000004d0| 74 69 6f 6e 50 72 6f 63 | 50 61 72 61 6d 29 3b 0d |tionProc|Param);.|
|000004e0| 7d 3b 0d 0d 23 65 6e 64 | 69 66 0d 00 00 00 00 00 |};..#end|if......|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 0f 54 68 72 65 61 64 43 | 6f 6e 74 65 78 74 2e 68 |.ThreadC|ontext.h|
|00000540| 02 00 00 00 54 45 58 54 | 4d 4d 43 43 00 00 00 00 |....TEXT|MMCC....|
|00000550| 00 00 54 45 58 54 4d 4d | 43 43 00 00 00 00 00 00 |..TEXTMM|CC......|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 ab e5 27 6f 00 00 | 04 6b 00 00 01 9a 00 00 |....'o..|.k......|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 0a | 00 04 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 bc 00 04 | 00 00 09 4e 65 74 54 72 |........|...NetTr|
|000005b0| 61 69 6e 21 36 38 4b 00 | 00 00 00 00 00 00 00 00 |ain!68K.|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 4e 54 72 6e 41 50 |........|..NTrnAP|
|000005f0| 50 4c 00 00 01 00 58 f0 | 00 00 00 00 00 00 00 00 |PL....X.|........|
|00000600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 03 | 00 04 00 58 00 04 01 dc |........|...X....|
|00000630| 02 7c 00 58 00 04 01 dc | 02 7c ac d0 03 64 00 00 |.|.X....|.|...d..|
|00000640| 01 19 00 00 01 22 00 00 | 01 3e 01 00 00 00 00 04 |....."..|.>......|
|00000650| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000660| 00 00 00 46 00 dd 45 88 | 0c dc 00 00 00 1c 00 46 |...F..E.|.......F|
|00000670| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000680| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000690| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+